<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/head.jspf"%>  

<head>
<title>东方易云后台管理系统</title>
<script language="javascript">
function goPage(pageNo) {
	document.goPageForm.pageNo.value = pageNo;
	document.goPageForm.submit();
}
</script>
</head>

<body>
<form id="appControllForm" action="/app/list"  method="post">

				应用名称： <input  id ="applicationNameSearch" name="applicationNameSearch"  value="<c:out value='${applicationNameSearch}'/>"/>
				
				提供商名称：<select ID="providerNameSearch"  name="providerNameSearch">
							<option value="">全部</option>
							<c:forEach var="organizationVO" items="${findProviderList}" varStatus="oStatus">
								<option VALUE="<c:out value='${organizationVO.organizationId}'/>" <c:if test="${organizationVO.organizationId eq providerNameSearch}">selected</c:if> ><c:out value='${organizationVO.chineseName}'/></option>
							</c:forEach> 
					</select>	 
				<input value="查&nbsp;&nbsp;询" type="submit"/>
			
<br/>
<br/>
<a href="/app/add">增加</a>
<table border="1">
	<tr>
	<td>序号</td>
	<td>应用名称</td>
	<td>版本号</td>
	<td>应用指导价格 </td>
	<td>机构名称 </td>
	<td>应用状态 </td>
	<td>操作</td>
	</tr>
	<c:forEach var="applicationBean" items="${applicationBeanList}" varStatus="vStatus">
		<tr>
		<td>${vStatus.count+(pageNo-1)*recordCountInOnePage}</td>
		<td><c:out value='${applicationBean.applicationVO.applicationName}'/></td>
		<td><c:out value='${applicationBean.applicationVO.applicationVersion}'/></td>
		<td><c:out value='${applicationBean.applicationVO.price}'/></td>
		<td><c:choose>
				<c:when test="${siteLanguage eq 'zh_CN'}"><c:out value='${applicationBean.organizationVO.chineseName}'/></c:when>
				<c:otherwise><c:out value='${applicationBean.organizationVO.englishName}'/></c:otherwise>
		</c:choose>
		
		</td>
		<td><c:out value='${statusMap[applicationBean.applicationVO.status]}'/></td>
		<td><a href="/app/info?applicationId=<c:out value='${applicationBean.applicationVO.applicationId}'/>&pageNo=<c:out value='${pageNo}'/>&applicationNameSearch=<c:out value='${applicationNameSearch}'/>&providerNameSearch=<c:out value='${providerNameSearch}'/>">查看</a>||
			<a href="/app/edit?applicationId=<c:out value='${applicationBean.applicationVO.applicationId}'/>&pageNo=<c:out value='${pageNo}'/>&applicationNameSearch=<c:out value='${applicationNameSearch}'/>&providerNameSearch=<c:out value='${providerNameSearch}'/>">修改</a>||
		    <a href="/app//control?applicationId=<c:out value='${applicationBean.applicationVO.applicationId}'/>&status=<c:out value='${applicationBean.applicationVO.status eq statusZero ? statusOne:statusZero}'/>&pageNo=<c:out value='${pageNo}'/>&applicationNameSearch=<c:out value='${applicationNameSearch}'/>&providerNameSearch=<c:out value='${applicationNameSearch}'/>"><c:out value='${statusMap[applicationBean.applicationVO.status eq statusZero ? statusOne:statusZero]}'/></a></td>
		</tr>
	</c:forEach>
</table>
</form>
<c:out value="${pageInfo}" escapeXml="false"></c:out>

<form method="post" action="/app/list" id="goPageForm" name="goPageForm">
      <input type="hidden" name="pageNo" value="<c:out value='${pageNo}'/>" />
      <input type="hidden" id="applicationNameSearch" name="applicationNameSearch" value="<c:out value='${applicationNameSearch }' />">
      <input type="hidden" id="providerNameSearch" name="providerNameSearch" value="<c:out value='${providerNameSearch }' />">
</form>
</body>

</html>
